home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
LIBRARY
/
CMPLTPAS
/
FLUSHTST.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1988-07-24
|
1KB
|
44 lines
{--------------------------------------------------------------}
{ FlushTest }
{ }
{ Keyboard buffer flush demonstration program }
{ }
{ by Jeff Duntemann }
{ Turbo Pascal V5.0 }
{ Last update 7/1/88 }
{ }
{ From: COMPLETE TURBO PASCAL 5.0 by Jeff Duntemann }
{ Scott, Foresman & Co., Inc. 1988 ISBN 0-673-38355-5 }
{--------------------------------------------------------------}
PROGRAM FlushTest;
USES Crt,DOS;
VAR I,J : Integer;
Ch : Char;
{$I FLUSHKEY.SRC}
PROCEDURE Counter;
BEGIN
FOR I := 1 TO 1000 DO
BEGIN
GotoXY(1,WhereY); ClrEol;
J := J + 1;
Write(J)
END;
Writeln
END;
BEGIN
REPEAT
Counter;
FlushKey;
Write('End program now? (Y/N): ');
Readln(Ch);
UNTIL Ch IN ['Y','y']
END.